let path = require('path');
const webpack = require('webpack');
module.exports = {
    publicPath: './',
    configureWebpack: {
        name: 'demo',
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src')
            }
        },
        plugins: [
            new webpack.ProvidePlugin({
                $: 'jquery',
                jQuery: 'jquery',
                'windows.jQuery': 'jquery',
                'window.Quill': 'quill/dist/quill.js',
                'Quill': 'quill/dist/quill.js'
            })
        ],
    },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://4v0w200906.vicp.fun/',
                changeOrigin: true, //是否跨域
                pathRewrite: {
                    '^/api': ""
                }
            }
        }
    }
}
